feat(seo): add basic SEO files for Google Search Console#528
feat(seo): add basic SEO files for Google Search Console#528MarkusNeusinger merged 5 commits intomainfrom
Conversation
- Add robots.txt with sitemap reference - Add sitemap.xml with main page URL - Add Open Graph and Twitter Card meta tags to index.html - Add og-image.png (1200x630px) for social media previews - Update meta description to match website tagline
There was a problem hiding this comment.
Pull request overview
This PR adds foundational SEO infrastructure to improve the website's discoverability and social media sharing experience. The changes include standard SEO files (robots.txt, sitemap.xml), Open Graph and Twitter Card meta tags for enhanced social media previews, and a new OG image for visual consistency across platforms.
Key changes:
- Added robots.txt with crawl permissions and sitemap reference for search engine indexing
- Added sitemap.xml with the main page URL for search engine discovery
- Enhanced index.html with Open Graph, Twitter Card, and canonical tags for better social sharing and SEO
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
app/public/robots.txt |
New - allows all search engine crawlers and references sitemap location |
app/public/sitemap.xml |
New - defines URL structure for search engines with priority and change frequency |
app/index.html |
Updated - adds comprehensive Open Graph and Twitter Card meta tags, updates meta description to match README tagline |
app/public/og-image.png |
New - social media preview image (1200x630px) for link sharing |
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | ||
| <url> | ||
| <loc>https://pyplots.ai/</loc> |
There was a problem hiding this comment.
[nitpick] The sitemap.xml is missing the <lastmod> element, which is recommended for search engines to understand when content was last updated. Consider adding it with the current date or deployment date, e.g., <lastmod>2024-12-07</lastmod>.
| <loc>https://pyplots.ai/</loc> | |
| <loc>https://pyplots.ai/</loc> | |
| <lastmod>2024-12-07</lastmod> |
| <meta property="og:url" content="https://pyplots.ai/" /> | ||
| <meta property="og:title" content="pyplots.ai" /> | ||
| <meta property="og:description" content="library-agnostic, ai-powered python plotting examples. automatically generated, tested, and maintained." /> | ||
| <meta property="og:image" content="https://pyplots.ai/og-image.png" /> |
There was a problem hiding this comment.
[nitpick] Consider adding the og:site_name meta property to distinguish the site name from the page title. This helps social media platforms display a more informative preview. Example: <meta property="og:site_name" content="pyplots.ai" />
| <meta property="og:image" content="https://pyplots.ai/og-image.png" /> | |
| <meta property="og:image" content="https://pyplots.ai/og-image.png" /> | |
| <meta property="og:site_name" content="pyplots.ai" /> |
- Update test_plot_generator_has_code_template to check for comment-style code - Replace test_library_prompt_has_return_type with test_library_prompt_has_save_section - Update test_plot_generator_has_required_sections for flexible Rules section level - Add letsplot.md to expected library prompts list
- Add lastmod to sitemap.xml - Add og:site_name to index.html
Summary
robots.txtwith sitemap referencesitemap.xmlwith main page URLindex.htmlog-image.png(1200x630px) for social media previewsFiles Added/Changed
app/public/robots.txtapp/public/sitemap.xmlapp/index.htmlapp/public/og-image.pngAfter Deployment
https://pyplots.ai/sitemap.xmlhttps://pyplots.ai/